package com.agileai.esb.smc.controller.sersta;

import com.agileai.domain.DataParam;
import com.agileai.esb.smc.bizmoduler.sersta.SysInfomationManage;
import com.agileai.hotweb.controller.core.StandardEditHandler;
import com.agileai.hotweb.domain.FormSelectFactory;

public class SysInfomationManageEditHandler
        extends StandardEditHandler {
    public SysInfomationManageEditHandler() {
        super();
        this.listHandlerClass = SysInfomationManageListHandler.class;
        this.serviceId = buildServiceId(SysInfomationManage.class);
    }

    protected void processPageAttributes(DataParam param) {
    	this.setAttribute("SYSINFO_PID", "00000000-0000-0000-00000000000000000");
    	
    	setAttribute("SYSINFO_TYPE",
                FormSelectFactory.create("SYS_TYPE")
                                 .addSelectedValue(getAttributeValue("SYSINFO_TYPE",
                                                                          "")));
    }

    protected SysInfomationManage getService() {
        return (SysInfomationManage) this.lookupService(this.getServiceId());
    }
}
